package com.zelix;

import java.util.HashMap;
import java.util.Hashtable;

class no extends mo {

    private static String z[];

    no(int i) {
        super(i);
    }

    public String a(fh fh, lu lu1, String s, String s1, String s2, Hashtable hashtable, qy qy,
                    qy qy1, Hashtable hashtable1, boolean flag, HashMap hashmap, HashMap hashmap1, fy fy, fy fy1) {
        if (super.b != 1 && (s.startsWith(z[0]) && flag || s.startsWith(z[1])) && oy.a(s.substring(z[0].length()))) {
            hashtable.put(s, lu1);
            hashtable1.put(s, lu1);
            return null;
        }
        s1 = s1.replace('.', '/');
        String s4 = lu.c(s1);
        char c = s4.charAt(s4.length() - 1);
        if (Character.isDigit(c))
            s4 = s4 + "_";
        String s3;
        do
            s3 = s4 + ++super.a;
        while (!a(s3, hashtable1, hashtable));
        hashtable1.put(s3, lu1);
        hashtable.put(s3, lu1);
        return s3;
    }

    private boolean a(String s, Hashtable hashtable, Hashtable hashtable1) {
        if (hashtable1.containsKey(s))
            return false;
        return !hashtable.containsKey(s);
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x35;
                    break;
                case 1:
                    key = 50;
                    break;
                case 2:
                    key = 121;
                    break;
                case 3:
                    key = 125;
                    break;
                default:
                    key = 2;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }


    static {

        String as[] = new String[2];
        as[0] = z("AZ\020\016&".toCharArray());
        as[1] = z("AZ\020\016)".toCharArray());
        z = as;
    }
}